package lombook;

import lombok.*;

import java.util.Date;

/**
 * @author liuli
 *
 */

@Getter
@Setter
@Builder(toBuilder=true)
@ToString(callSuper=true,exclude = "birthDay")
@EqualsAndHashCode
public class BuilderBean extends BaseBean {
     @NonNull
    String name;

    Integer age;

    Date birthDay;


    public static void main(String[] args) {
        BuilderBean builderBean =  BuilderBean.builder().name("liuli").age(10).birthDay(new Date()).build();
        System.out.println(builderBean);
    }
}
